package socnet.model;

public class User {

	private static int id_count = 0;
	
	private String email;
	private String birthdate;
	private String passw;
	private int id;
	private String city;
	private boolean admin;
	private String about;
	private String first_name;
	private String last_name;
	private String name;
	private String gender;
	private String work;
	
	public User(){
		
	}
	
	public User(String email, String birthdate, String passw,
			String city, boolean admin, String about, String first_name,
			String last_name, String gender, String work){
		this.email = email;
		this.birthdate = birthdate;
		this.passw = passw;
		this.id = ++id_count;
		this.city = city;
		this.about = about;
		this.first_name = first_name;
		this.last_name = last_name;
		this.gender = gender;
		this.work = work;
		this.name = last_name + " " + first_name;
	}
	
	public User(String email, String birthdate, String passw, boolean admin,
			String first_name, String last_name){
		this.email = email;
		this.birthdate = birthdate;
		this.first_name = first_name;
		this.last_name = last_name;
		this.passw = passw;
		this.id = ++id_count;
		this.name = last_name + " " + first_name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(String birthdate) {
		this.birthdate = birthdate;
	}

	public String getPassw() {
		return passw;
	}

	public void setPassw(String passw) {
		this.passw = passw;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public boolean isAdmin() {
		return admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

	public String getAbout() {
		return about;
	}

	public void setAbout(String about) {
		this.about = about;
	}

	public String getFirst_name() {
		return first_name;
	}

	public void setFirst_name(String first_name) {
		this.first_name = first_name;
	}

	public String getLast_name() {
		return last_name;
	}

	public void setLast_name(String last_name) {
		this.last_name = last_name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getWork() {
		return work;
	}

	public void setWork(String work) {
		this.work = work;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	
	
}
